
    <el-form :inline="true" :model="formInline"  ref="formInline" class="regular-form" label-width="120px" >
        <el-row>
            <el-col :span="12">
            <el-form-item label="航班号"  prop="flightInfo.flightInfoId":rules
                    ="[ {required: true, message: '航班号不能为空'}]">
                <el-select v-model="formInline.flightInfo.flightInfoId" filterable placeholder="请选择" @change="handleSelect" >
                    <el-option
                            v-for="plane in planes"
                            :key="plane.flightInfoId"
                            :label="plane.flightNum"
                            :value="plane.flightInfoId"
                            >
                    </el-option>
                </el-select>
            </el-form-item>
            </el-col>
            <el-col :span="12">
            <el-form-item label="机型" >
                <el-input v-model="flightInfo.flightType" placeholder="机型" :disabled="true" ></el-input>
            </el-form-item>
            </el-col>
        </el-row>
        <el-row>
            <el-col :span="12">
            <el-form-item label="机号" >
                <el-input v-model="flightInfo.flightNo" placeholder="机号" :disabled="true" ></el-input>
            </el-form-item>
            </el-col>
            <el-col :span="12">
            <el-form-item label="安排日期"  prop="estimatedTime":rules
                    ="[ {required: true, message: '预约日期不能为空'}]">
                <el-date-picker
                        v-model="formInline.estimatedTime"
                        align="right"
                        type="date"
                        placeholder="选择日期"
                        format="yyyy-MM-dd"
                        value-format="yyyy-MM-dd"

                >
                </el-date-picker>
            </el-form-item>
            </el-col>
        </el-row>
        <el-row>
            <el-col :span="12">
            <el-form-item label="进出港"  prop="importOrExport":rules
                    ="[ {required: true, message: '进出港不能为空'}]">
                <el-select v-model="formInline.importOrExport" placeholder="请选择" :disabled="parentData&&parentData.editOrAdd=='edit'">
                    <el-option label="进港" value="进港"> </el-option>
                    <el-option label="出港" value="出港"></el-option>
                    <el-option label="中转联程" value="中转联程"></el-option>
                </el-select>
            </el-form-item>
            </el-col>
            <el-col :span="12">
            <el-form-item label="性质"  prop="normalAbnormality":rules
                    ="[ {required: true, message: '性质不能为空'}]">
                <el-select v-model="formInline.normalAbnormality" placeholder="请选择">
                    <el-option label="加班" value="加班"></el-option>
                    <el-option label="正常" value="正常"></el-option>
                    <el-option label="异常" value="异常"></el-option>
                </el-select>
            </el-form-item>
            </el-col>
        </el-row>
        <el-row>

            <el-col :span="12">
            <el-form-item  label="计划起飞时间" prop="takeOffTime":rules
                    ="[ {required: true, message: '计划起飞时间不能为空'}]">
                <el-date-picker
                        v-model="formInline.takeOffTime"
                        type="datetime"
                        placeholder="计划起飞时间"
                        format="yyyy-MM-dd HH:mm"
                        value-format="yyyy-MM-dd HH:mm"
                >
                </el-date-picker>
            </el-form-item>
            </el-col>
            <el-col :span="12">
            <el-form-item  label="计划到达时间" prop="arriveTime":rules
                    ="[ {required: true, message: '计划到达时间不能为空'}]" label-width="120px">
                <el-date-picker
                        v-model="formInline.arriveTime"
                        type="datetime"
                        placeholder="计划到达时间"
                        format="yyyy-MM-dd HH:mm"
                        value-format="yyyy-MM-dd HH:mm"

                >
                </el-date-picker>
            </el-form-item>
            </el-col>
        </el-row>

        <el-row>
            <el-col :span="12">
        <el-form-item label="预约航线: 从" prop="originating":rules
                ="[ {required: true, message: '出发地不能为空'},{max:30,message:'长度不能超过30位'}]">
                <el-autocomplete
                        class="inline-input"
                        v-model="formInline.originating"
                        :fetch-suggestions="querySearchPlace"
                        placeholder="请输入内容"

                >
                </el-autocomplete>
            </el-form-item>
            </el-col>
            <el-col :span="12">
            <el-form-item label="到" prop="destination":rules
                    ="[ {required: true, message: '目的地地不能为空'},{max:30,message:'长度不能超过30位'}]">
                <el-autocomplete
                        class="inline-input"
                        v-model="formInline.destination"
                        :fetch-suggestions="querySearchPlace"
                        placeholder="请输入内容"

                >
                </el-autocomplete>
            </el-form-item>
            </el-col>
        </el-row>

        <!--<el-row>-->
            <!--&lt;!&ndash;:rules&ndash;&gt;-->
            <!--&lt;!&ndash;="[ {required: true, message: '预预起飞时间不能为空'}]">&ndash;&gt;-->
            <!--<el-form-item  label="预预起飞时间" prop="preFlyTime">-->
                <!--<el-date-picker-->
                        <!--v-model="formInline.preFlyTime"-->
                        <!--type="datetime"-->
                        <!--placeholder="预预起飞时间"-->
                        <!--format="yyyy-MM-dd HH:mm"-->
                        <!--value-format="yyyy-MM-dd HH:mm"-->

                <!--&gt;-->
                <!--</el-date-picker>-->
            <!--</el-form-item>-->
            <!--&lt;!&ndash;:rules&ndash;&gt;-->
            <!--&lt;!&ndash;="[ {required: true, message: '预计到达时间不能为空'}]"&ndash;&gt;-->
            <!--<el-form-item  label="预计到达时间" prop="preArriveTime" label-width="120px">-->
                <!--<el-date-picker-->
                        <!--v-model="formInline.preArriveTime"-->
                        <!--type="datetime"-->
                        <!--placeholder="预计到达时间"-->
                        <!--format="yyyy-MM-dd HH:mm"-->
                        <!--value-format="yyyy-MM-dd HH:mm"-->


                <!--&gt;-->
                <!--</el-date-picker>-->
            <!--</el-form-item>-->
        <!--</el-row>-->
        <el-row>
            <el-form-item label=" ">
                <el-button  type="primary" @click="save">保存</el-button>
                <el-button  type="primary" @click="saveAndPublish">保存发布</el-button>
            </el-form-item>
        </el-row>
    </el-form  >
</div>